const { intDeclare } = require('./SimpleCalculator')
const { SimpleLexer } = require('../ch01/SimpleLexer')
const { printAst } = require('./SimpleAstNode')

const script = 'int a = b+(3+1)+2'
console.log('parse: ', script)
const lexer = new SimpleLexer()
const tokenReader = lexer.genSimpleTokenReader(script)
while(tokenReader.peek()) {
  console.log(tokenReader.read())
}
// const node = intDeclare(tokenReader)
// printAst(node)
